package xyz.renyumeng.xkm.model.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.renyumeng.xkm.model.base.BaseEntity;

/**
 * 用户信息
 *
 * @author renyumeng
 * @date Created in 16:08 2023/6/29
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "用户信息")
@TableName("user_info")
public class UserInfo extends BaseEntity {
    /**
     * 串行版本uid
     */
    private static final long serialVersionUID = 1L;

    /**
     * 电话
     */
    @ApiModelProperty(value = "手机号")
    @TableField("`phone`")
    private String phone;

    @ApiModelProperty(value = "用户地址id")
    @TableField("`user_address_id`")
    private Long userAddressId;

    @ApiModelProperty(value = "用户的用户名")
    @TableField("`nickname`")
    private String nickname;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @TableField("`username`")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @TableField("`password`")
    private String password;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    @TableField("`gender`")
    private Integer gender;

    /**
     * desc
     */
    @ApiModelProperty(value = "简介")
    @TableField("`desc`")
    private String desc;


    /**
     * 信用评分
     */
    @ApiModelProperty(value = "信用得分")
    @TableField("`credit_score`")
    private Integer creditScore;


}
